/**
 * css 视图长度单位
 */
export const LengthArray = ['cm', 'mm', 'q', 'in', 'pt', 'pc', 'px', 'em', 'ex', 'ch', 'rem', 'vw', 'vh', 'vmax', 'vmin']

/**
 * css 视图长度正则验证
 */
export const LengthRegexp = /^\d+(\.\d+)?(cm|mm|q|in|pt|pc|px|em|ex|ch|rem|vw|vh|vmax|vmin)$/

export const ColorRegexp = /^(\#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|rgb\(\d{1,3},\s{0,}\d{1,3},\s{0,}\d{1,3}\)|rgba\(\d{1,3},\s{0,}\d{1,3},\s{0,}\d{1,3},\s{0,}([01]|0?\.\d+)\))$/

export const FontWeightArray = ['100', '200', '300', '400', '500', '600', '700', '800', '900', 'normal', 'bold', 'bolder', 'lighter']

export const FontWeightRegexp = /^([1-9]\d{0,2}|1000|normal|bold|bolder|lighter)$/

/**
 * 段落模块支持的类型
 */
export const LineType = new Set(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'])
